# Author:: Alexandre Ribeiro de Souza (<alexandre@lumis.com.br>)

package "tomcat6" do
  action :install
  not_if "test -f /etc/tomcat6/tomcat6.conf"
end

package "tomcat-native" do
  action :install
  not_if "test -e /usr/lib64/libtcnative-1.so"
end

template "/etc/init.d/tomcat6" do
  source "tomcat6.erb"
  mode "0755"
  owner "root"
  group "root"
end